home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Pkill(2) Oct. 1, 1991 Pkill(2)
-
-
- N✓NA✓AM✓ME✓E
- Pkill - send a signal to a process
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <signal.h>
-
- WORD Pkill( WORD pid, WORD sig);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓P_✓k_✓i_✓l_✓l sends the signal described by _✓s_✓i_✓g to one or more
- processes, as follows:
-
- If _✓p_✓i_✓d is a positive number, then the signal is sent to
- the process with that process id.
-
- If _✓p_✓i_✓d is 0, the signal is sent to all members of the pro-
- cess group of the calling process (i.e. all processes
- which have the same process group number). This includes,
- of course, the calling process itself.
-
- If _✓p_✓i_✓d is less than 0, the signal is sent to all processes
- with process group number _✓-_✓p_✓i_✓d.
-
- R✓RE✓ET✓TU✓UR✓RN✓NS✓S
- 0 if successful. Note that if the current process is a
- recipient of the signal, the _✓P_✓k_✓i_✓l_✓l call may not return at
- all if the process is killed.
-
- ERANGE if _✓s_✓i_✓g is not a valid signal.
-
- EFILNF if _✓p_✓i_✓d
- > 0 and the indicated process has terminated or does not
- exist, or if _✓p_✓i_✓d
- < 0 and there are no processes in the corresponding pro-
- cess group.
-
- EACCDN if _✓p_✓i_✓d > 0, the sending process does not have an
- effective user id of 0, and the recipient process has a
- different user id from the sending process.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓P_✓s_✓e_✓t_✓p_✓g_✓r_✓p_✓(_✓2_✓)_✓, _✓P_✓s_✓i_✓g_✓n_✓a_✓l(2)
-
- B✓BU✓UG✓GS✓S
- The user id checks should also be performed when sending
- signals to process groups. Do _✓n_✓o_✓t rely on the lack of
- checks, as this will be corrected at some point.
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-